Janet previous chapter "Looking at the Big Data era of IT Architecture" (2) Message Queuing rabbitmq-Basic concept detailed introduction, roughly speaking, the current message queue of several common products of the pros and cons of the comparison, the next few chapters will be elaborated in detail, this chapter introduces RABBITMQ, okay, nonsense less say, Offic
Janet: Looking at the IT architecture in the Big Data Era (3) rabbitmq-installation, configuration and monitoring of Message QueuingFirst, installation1. Installing Erlang1) System compilation Environment (Linux/unix environment is used here)① Installation EnvironmentVirtual machine: vmware®workstation 10.0.1 BuildLinux system: CentOS6.5RABBITMQ official website Download:http://www.rabbitmq.com/download.htm
Janet previous chapter "Janet: Look at the Big Data era of IT Architecture (1) Industry message Queue comparison", roughly speaking, the current message queue of several common products of the pros and cons of the comparison, the next few chapters will be elaborated in detail, this chapter introduces RABBITMQ, OK, nonsense less, formally started:First, the basic concept of a detailed introduction1. Introduc
message) set two values ReplyTo (a queue name, Used to tell the server to send a message to the queue after processing is complete, and correlationid (the identification number of this request, the server will need to return this property after processing is completed, the client is based on this ID to know which request was executed successfully or failed to execute)
The server receives the message and processes
After the server finishes processing the message, a reply message is gener
Memory nodes
Set the hosts resolution file for each server to add the following content
Vim/etc/hosts
172.16.10.138 RabbitMQ01172.16.10.147 RabbitMQ02172.16.10.146 RabbitMQ03
Set the hostname for each server
Mq01.localdomain #依次为mq02 mq03
Configure installation of Epel source with RABBITMQ
Yum-y Install Epel-release
Installing
machine, using the default installation. Start the ASP. NET Core Web API First, and then create a customer request two times through PowerShell:Check to see if the database is updated properly:And check the log information:Information for Exchange in RABBITMQ:SummarizeThis article provides a rabbitmqeventbus implementation that is sufficient for the time being, and that this implementation can be used in real-world projects. In actual use, may also encounter some problems related to
First, reviewLet's review what we've said in the last few chapters. Summarized as follows:
"Janet: Looking at the IT architecture in the Big Data era (1) Industry Message Queuing comparison"
Janet: Looking at the IT architecture in the Big Data Era (2) Message Queuing rabbitmq-Basic concept detailed Introduction
1 RABBITMQ Knowledge Point 1.1 overall architecture diagram
Message producers post messages to Exchange, and Exchange routes producer-delivered messages to a queue in some sort of routing mechanism, and the message consumer gets messages from the queue for consumption .
1.2 Core Concepts 1.2.1 Server
Also known as broker, receiving client connections, implementing AMQP entity Services1.2.2 Connection
Con
RabbitMQ Article 1: setup and configuration of rabbitMQ and rabbitmq Article 1
Install rabbitMQ in WindowsStep 1: Install software
If rabbitMQ is installed, first install OTP software based on the erlang language, and then download the r
-driven synchronous ruby architecture, so the client has a very concise style when using the event-driven Ruby API.The AMQP server in this article is a RABBITMQ written using Erlang11. It implements the AMQP specification version 0-8, and will implement content 12 for the 0-9-1 version in the near future.Tell something before you start: asynchronous messaging is a very common and widely used technology, fro
1 RABBITMQ Knowledge Point 1.1 overall architecture diagramMessage producers post messages to Exchange, and Exchange routes producer-delivered messages to a queue in some sort of routing mechanism, and the message consumer gets messages from the queue for consumption .1.2 Core Concepts 1.2.1 ServerAlso known as broker, receiving client connections, implementing AMQP entity Services1.2.2 ConnectionConnection
); Console.WriteLine ("Done"); Channel. BasIcack (ea. Deliverytag, false); } } }}Three management interfaceRABBITMQ also has a management interface that allows you to view the current state of the RABBITMQ Server, which is provided as a plug-in, and has been brought to the plug-in when the RABBITMQ is installed. What needs to be done is to enable the plugin in the
); Console.WriteLine ("Done"); Channel. BasIcack (ea. Deliverytag, false); } } }}Three management interfaceRABBITMQ also has a management interface that allows you to view the current state of the RABBITMQ Server, which is provided as a plug-in, and has been brought to the plug-in when the RABBITMQ is installed. What needs to be done is to enable the plugin in the
[RabbitMQ] 6. Confirm the message of the rabbitmq producer and the rabbitmq producer.
Through the Publisher Confirms and Returns mechanism, the producer can determine whether the message is sent to exchange and queue. Through the consumer confirmation mechanism, Rabbitmq can decide whether to resend the message to the
building distributed systems and improving the scalability and responsiveness of the system, and hopefully this article will help you understand Message Queuing and how to use RABBITMQ.Five reference documents
Http://www.infoq.com/cn/articles/message-based-distributed-architecture
Http://www.rabbitmq.com/getstarted.html
Http://www.codethinked.com/using-rabbitmq-with-c-and-net
Http://ww
. Message Queuing plays an important role in building distributed systems and improving the scalability and responsiveness of the system, and hopefully this article will help you understand Message Queuing and how to use RABBITMQ.Five reference documents
Http://www.infoq.com/cn/articles/message-based-distributed-architecture
Http://www.rabbitmq.com/getstarted.html
Http://www.codethinked.com/using-
. Otherwise, all statuses and messages will be lost.
Ideas:
So how to implement high availability of rabbitmq? First, we set up a common cluster mode, then configure the image mode to achieve high availability, and add a reverse proxy before the rabbit cluster, the producer and consumer access the rabbitmq cluster through reverse proxy.
Structural Diagram: picture from http://www.nsbeta.infoIn the above exa
middleware is mainly used for decoupling between components, the sender of the message does not need to know the existence of the message consumer, and vice versa. The main features of AMQP are message-oriented, queue, routing (including point-to-point and publish/subscribe), reliability, and security. RABBITMQ is an open-source AMQP implementation that is written in Erlang and supported by a variety of clients such as Python, Ruby,. NET, Java, JMS,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.